package com.fenghongzhang.module_main

import com.fenghongzhang.module_main.model.CommonSimpleBody
import com.fenghongzhang.module_main.repository.MallRepository
import kotlinx.coroutines.runBlocking
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
     fun addition_isCorrect1() {
        val mallRepository = MallRepository()
        runBlocking {
            mallRepository.cmallAdInfo(CommonSimpleBody()).collect{
                println(it)
            }
        }

    }
}